package com.uzai.console.entity.es;

import com.uzai.common.entity.UserExtInfo;
import com.uzai.common.utils.EsIndexName;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Version;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @Auther: jianghan
 * @Date: 2021/9/29 16:51
 * @Description:
 */
@Document(indexName = EsIndexName.UZAI_USER_EXT_INFO, shards = 3, replicas = 2)
public class EsUserExtInfo extends UserExtInfo {

    private int createTime;
    private int updateTime;

    @Id
    private String id;
    @Version
    private Long version = 0L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}
